<template>
  <div class="lefthead_con">
    <img class="lefthead_con_img" :src="props.headimg" alt="">
    <div class="lefthead_con_text">{{ props.headtext }}</div>
  </div>
</template>

<script setup>
import { onMounted } from 'vue';
const props = defineProps(['headtext', 'headimg'])

onMounted(() => {

})

</script>

<style lang="less" scoped>
.lefthead_con {
  width: 430px;
  background: url(../../assets/img/components/lefthead.png);
  background-size: 100% 100%;
  height: 46px;
  position: relative;
  top: -7px;
  display: flex;
  align-items: center;
  z-index: 3;

  .lefthead_con_img {
    width: 38px;
    height: 38px;
    margin-right: 2px;
  }

 

  .lefthead_con_text {
    height: 22px;
    font-family: ZHDH, ZHDH;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    background: linear-gradient(to bottom, #FFFFFF 0%, #92CDFF 100%);
    /* 渐变背景 */
    -webkit-background-clip: text;
    /* 将背景裁剪到文字 */
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 文字填充色透明，显示背景渐变 */
    color: transparent;
  }
}
</style>